<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>EventEmitter</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="../../../libs/EventEmitter/5.2.4/EventEmitter.js"></script>
    <script>
        var ee = new EventEmitter();
        ee.on("someEvent", function () { console.log("event 1"); });
        ee.on("someEvent", function () { console.log("event 2"); });
        ee.on("someEvent", function () { console.log("event 3"); });
        ee.on("someEvent", function () { console.log("event 4"); });
        ee.on("someEvent", function () { console.log("event 5"); });
        ee.on("someEvent", function () { console.log("event 6"); });
        ee.on("someEvent", function () { console.log("event 7"); });
        ee.on("someEvent", function () { console.log("event 8"); });
        ee.on("someEvent", function () { console.log("event 9"); });
        ee.on("someEvent", function () { console.log("event 10"); });
        ee.on("someEvent", function () { console.log("event 11"); });

        ee.emit("someEvent");
    </script>
</head>

<body>

</body>

</html>